package org.wzl._360mallbackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.wzl._360mallbackend.entity.Category;

import java.util.List;
import java.util.Map;

public interface CategoryService extends IService<Category> {
    List<Category> getAllCategoryById(Integer id);

    Map<String, Object> getCommodityByCategoryName(String categoryName);

    /**
     * 获取下一级的所有菜单
     * @param id    当前id
     * @return
     */
    List<Category> getNextLevelCategories(Integer id);
}
